<?php $contents = $sf_data->getRaw('contents'); ?>
<div style="float: right;padding: 10px;">
    <a href="<?php echo url_for('@homepage') ?>"><b>Volver a Opinics</b></a>
</div>
<div id="configuration_menu">
<ul>
    <li><a href="<?php echo url_for('@dashboard') ?>">Configuraci&oacute;n</a></li>
    <li class="selected"><a href="<?php echo url_for('@articles_new') ?>">Escribir un artículo</a></li>
    <li><a href="<?php echo url_for('@history') ?>">Historial</a></li>
</ul>
</div>
<form id="frm" action="<?php echo url_for('@article_save') ?>" method="post">
    <input type="hidden" id="hdparagraphs" name="hdparagraphs"/>
    <input type="hidden" name="hdArticleId" value="<?php echo $article->getId() ?>" />
<div id="configuration_content">
  <div id="configuration_in">
    <div style="padding: 15px;">
      <table width="100%">
        <tr>
          <td>
            <div id="paragraph_container" style="width: 100%;height: 100%">
                <ul class="paragraph_ul">
                    <li id="paragraph_1" class="ui-state-default" style="width: 922px;">
                        <?php echo $contents[0]; ?>
                    </li>
                </ul>
                <ul class="paragraph_ul" id="sortable">
                    <li id="joker" class="ui-state-default" style="width: 922px;background: #f9edbe;">
                        <b>DRAG ZONE CONTROLLER (BELOW CONTENT IS PRIVATE) <input type="button" value="?"/></b>
                    </li>
                    <?php $c=1;$count = count($contents); ?>
                    <?php foreach($contents as $content){ ?>
                    <?php if($c!=1 && $c!=$count){ ?>
                    <li id="paragraph_<?php echo $c; ?>" class="ui-state-default" style="width: 922px;">
                        <?php echo $content; ?>
                    </li>
                    <?php } ?>
                    <?php $c++; ?>
                    <?php } ?>
                </ul>
                <ul class="paragraph_ul">
                    <li id="paragraph_<?php echo $count  ?>" class="ui-state-default" style="width: 922px;">
                        <?php echo $contents[$count-1]; ?>
                    </li>
                </ul>
            </div>
          </td>
        </tr>
        <tr>
          <td align="center">
            <input type="button" value="Continuar" onclick="v_frm2(this);" style="padding: 10px;" />
          </td>
        </tr>
      </table>
    </div>
  </div>
</div>
</form>